<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh-CN"/>

<div class="modal-dialog demo2do-modal-dialog">

  <div class="modal-content">

    <div class="modal-header earth-breadcrumb no-bottom-border clearfix">
      <h2><i class="glyphicon glyphicon-fire" title=""></i>&nbsp;&nbsp;<span>到账管理&nbsp;-&nbsp;到账修复</span></h2>
      <button type="button" class="close" data-dismiss="modal">&times;</button>
    </div>

    <form class="form-horizontal" method="post" action="${ctx}/receipt/${transactionRecord.id}/support" data-validate="true">
      <c:choose>
	      <c:when test="${not empty transactionRecord.tradeNo }">
		      <div class="modal-body">
		
		        <p class="confirm">
		          <i class="glyphicon glyphicon-flash glyphicon-position-fix-2"></i>&nbsp;&nbsp;确认修复该交易？
		        </p>
		        		
		      </div>
	      </c:when>
	      <c:otherwise>
		      <div class="modal-body">
		
		        <!-- <p class="confirm">
		          <i class="glyphicon glyphicon-flash glyphicon-position-fix-2"></i>&nbsp;&nbsp;确认修复该交易？
		        </p> -->
		        <div class="form-group demo2do-form-group">
		        
		          <label class="col-xs-4 control-label">交易号</label>
		
		          <div class="col-xs-5">
		            <input type="text" class="form-control" name="tradeNo" required="required" data-validate="number"/>
		          </div>
		
		        </div>		        
		        		
		      </div>	      	
	      </c:otherwise>
      </c:choose>

      <div class="modal-footer">
        <button id="submit" type="submit" class="btn btn-success btn-shadow btn-shadow-success demo2do-btn">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default demo2do-btn" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>

</div>

<script src="${ctx.resource}/js/bootstrap.validate.trigger.js"></script>
